package at.fhj.swd;

/**
 * Implementation of Flower with its attributes. 
 * Attributes can get printed.
 * 
 * @author  bernadette.pecovnik
 * @version 1.0
 */
public class Flower {
	
	/** stores the color of the flower */
	public String color;
	
	/** stores id that is assigned to a flower */
	public int id;
	
	/**
	 * Constuctor that initializes Class Flower with the attributes color and id
	 * 
	 * @param color  represents the color of the flower
	 * @param id     represents the id assigned to the flower
	 */
	public Flower(String color, int id) {
		this.color = color;
		this.id = id;
	}
	
	/**
	 * Prints the attributes of the flower.
	 * Id and color are printed with according description.
	 */
	public void printFlower(){
		System.out.println("ID: " + this.id);
		System.out.println("Farbe: " + this.color);
	}

}
